package com.apkfuns.jsbridge.module;


import ohos.agp.window.dialog.ToastDialog;



public class StaticModule extends JsStaticModule {

    @JSBridgeMethod
    public void alert(String msg, JBCallback callback) {
        new ToastDialog(getContext())
                .setText(msg)
                .show();
    }

    @JSBridgeMethod
    public String mapToString(JBMap map) {
        return map.getString("data");
    }

    @JSBridgeMethod
    public int getVersion() {
        return 10;
    }
}
